package top.chenfu.cloud.order.fetch;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import top.chenfu.cloud.commons.Item;
import top.chenfu.cloud.commons.util.ResponseData;

/**
 * @Auther chenfu
 * @2019/12/7 21:33
 * @Desc
 */
@FeignClient(name = "item-service")
public interface ItemFetch {

    @GetMapping(value = "/item/get/{id}")
    ResponseData<Item> getItemById(@PathVariable String id);

}
